import 'package:package_info/package_info.dart';
import 'package:shared_preferences/shared_preferences.dart';

class Global {
  static const String token = 'token';
  static const String consumer_id = 'consumer_id';
  static const String url_avatar = 'url_avatar';
  static const String merchantName = 'merchantName';
  static const String phone = 'phone';
  static const String owned = 'owned';///是否为管理员

  static SharedPreferences prefs;
  static PackageInfo packageInfo;

  //初始化全局信息，会在APP启动时执行
  static Future init() async {
    prefs = await SharedPreferences.getInstance();
    packageInfo = await PackageInfo.fromPlatform();
  }
}
